package com.zqh.app.dao;

import com.zqh.app.entity.Count;
import com.zqh.common.dao.BaseMapper;
import com.zqh.common.entity.Query;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

@MapperScan
public interface CountMapper extends BaseMapper<Count> {

    /**
     * 脏腑
     * @return
     */
    List<Count> countTotalViscera(Query query);

    /**
     * 睡眠
     * @return
     */
    List<Count> countTotalSleep(Query query);

    /**
     * 运动
     * @return
     */
    List<Count> countTotalSport(Query query);


    /**
     * 统计
     * @return
     */
    List<Count> countTotalDevice(Query query);

    /**
     * 统计性别
     * @return
     */
    List<Count> countSex(Query query);

    /**
     * 统计地址
     * @return
     */
    List<Count> countTotalLocation(Query query);

    /**
     * 统计地址
     * @return
     */
    List<Count> countTotalAge(Query query);

    /**
     * 统计
     * @return
     */
    Count mainCountTotal(Query query);

    /**
     * 统计
     * @return
     */
    Count mainCountTotal1(Query query);

    /**
     * 统计
     * @return
     */
    Count mainCountTotal2(Query query);
}
